-- GENERATED SPELL FOR [Lady Shav'rar] --


function spell0_20684(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20684', 2500, 1)
end

function spell1_20684(pUnit, Event) --@Freeze,n/a--
pUnit:FullCastSpellOnTarget(38035,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20684', 18000, 1)
end

function Sorts_20684(pUnit, Event)
local choix_sorts_20684 = math.random(0, 1)
if choix_sorts_20684 == 0 then
pUnit:RegisterEvent('spell0_20684', 1, 1)
end
if choix_sorts_20684 == 1 then
pUnit:RegisterEvent('spell1_20684', 1, 1)
end
end

function mob20684_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20684', math.random(1500, 3000), 1)
end

function mob20684_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20684_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20684_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20684, 1, 'mob20684_Action')
RegisterUnitEvent(20684, 2, 'mob20684_Leave')
RegisterUnitEvent(20684, 3, 'mob20684_Kill')
RegisterUnitEvent(20684, 4, 'mob20684_Die')
